import BaseLayerModule from './base/BaseLayerModule'
import axios from 'axios'

export class TestApi extends BaseLayerModule {
    constructor(that) {
        super(that)
    }

    /**
     * 测试接口 POST请求
     参数：raw
     {
        "userId": "13"
        }
     * @param callBack
     */
    postTestLogin(callBack) {
        let params = {
            "userId": "13"
        };
        this.thyPostModuleData('saveUser', params, callBack);
    }

    getOrderId(id, callBack) {
        let params = {
            "orderNo": "13"
        };
        this.thyGetModuleData(`order/${id}`, params, callBack);
    }

    getOrder(callBack) {
        let params = {
            "orderNo": "13"
        };
        this.thyGetModuleData('order', params, callBack);
    }

    save(blob, variable, interval, number, callback) {
        let param = {
            'file': blob,
            'variable': variable,
            'interval': interval,
            'number': number
        }
        this.thyPostModuleFormData('fileurl/save', param, callback)
    }


}
